/**
 * 账户信息
 */
var mongoose = require('mongoose'),
    Schema = mongoose.Schema,
    ObjectId = Schema.ObjectId;

var _AccountRole = new Schema({
    accountId: {type: ObjectId},    // 账户ID
    roleId: {type: ObjectId},       // 角色ID
    updateId: {type: ObjectId},     // 更新人
    updateDt: {type: Date},         // 更新时间
    createId: {type: ObjectId},     // 创建人
    createDt: {type: Date}          // 创建时间
});

mongoose.model('account_role', _AccountRole);